package com.zbkj.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品属性值表
 * </p>
 *
 * @author Your Name
 * @since 2024-12-02
 */
@Data
  @EqualsAndHashCode(callSuper = false)
  @Accessors(chain = true)
@TableName("eb_store_product_attr_value")
@ApiModel(value="StoreProductAttrValue对象", description="商品属性值表")
public class StoreProductAttrValue implements Serializable {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty(value = "商品ID")
      private Integer productId;

      @ApiModelProperty(value = "商品属性索引值 (attr_value|attr_value[|....])")
      private String suk;

      @ApiModelProperty(value = "属性对应的库存")
      private Integer stock;

      @ApiModelProperty(value = "销量")
      private Integer sales;

      @ApiModelProperty(value = "属性金额")
      private BigDecimal price;

      @ApiModelProperty(value = "图片")
      private String image;

      @ApiModelProperty(value = "唯一值")
      private String unique;

      @ApiModelProperty(value = "成本价")
      private BigDecimal cost;

      @ApiModelProperty(value = "商品条码")
      private String barCode;

      @ApiModelProperty(value = "原价")
      private BigDecimal otPrice;

      @ApiModelProperty(value = "重量")
      private BigDecimal weight;

      @ApiModelProperty(value = "体积")
      private BigDecimal volume;

      @ApiModelProperty(value = "一级返佣")
      private BigDecimal brokerage;

      @ApiModelProperty(value = "二级返佣")
      private BigDecimal brokerageTwo;

      @ApiModelProperty(value = "活动类型 0=商品，1=秒杀，2=砍价，3=拼团")
      private Boolean type;

      @ApiModelProperty(value = "活动限购数量")
      private Integer quota;

      @ApiModelProperty(value = "活动限购数量显示")
      private Integer quotaShow;

      @ApiModelProperty(value = "attr_values 创建更新时的属性对应")
      private String attrValue;

      @ApiModelProperty(value = "是否删除,0-否，1-是")
      private Boolean isDel;


}
